package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.cent.sdata.ProjectApp;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author:
 * @create: 2020-11-25
 **/
@RestController
public interface IProjectAppService extends IService<ProjectApp> {

    void save(Integer projectId, List<Integer> appIdList);

    @RequestMapping(value = "/project-app-service/list-project-id", method = RequestMethod.POST)
    List<Integer> list(@RequestPart Integer projectId);

    void deleteProjectApp(List<Integer> projectIdList, List<Integer> appIdList);

    @RequestMapping(value = "/project-app-serivce/find-projectid-by-appid")
    List<Integer> findProjectIdByAppId(@RequestPart String appId);

}
